import { Component } from '@angular/core';
import { PriceQuote } from './price-quote/price-quote.component';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {

  stock = "";

  priceQuote: PriceQuote = new PriceQuote("", 0);
  priceQuoteOrder: PriceQuote = new PriceQuote("", 0);

  priceQuoteHandler(event: PriceQuote) {
    this.priceQuote = event;
  };

  buyHandler(event: PriceQuote) {
    console.log(event);
    this.priceQuoteOrder = event;
  };


}
